package com.zhijian.warehouse.manage.dao;

import com.zhijian.warehouse.manage.entity.po.StoreLockRecord;
import com.zhijian.warehouse.manage.entity.vo.request.StoreLockRecordSearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.StoreLockRecordVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StoreLockRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StoreLockRecord record);

    int insertSelective(StoreLockRecord record);

    StoreLockRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StoreLockRecord record);

    int updateByPrimaryKey(StoreLockRecord record);

    /**
     * 查询总数
     *
     * @param storeLockRecordSearchVo
     * @return
     */
    int count(StoreLockRecordSearchVo storeLockRecordSearchVo);

    /**
     * 查询列表
     *
     * @param storeLockRecordSearchVo
     * @return
     */
    List<StoreLockRecordVo> selectList(StoreLockRecordSearchVo storeLockRecordSearchVo);

    /**
     * 查询单个
     *
     * @param storeLockRecordSearchVo
     * @return
     */
    StoreLockRecordVo selectOne(StoreLockRecordSearchVo storeLockRecordSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    StoreLockRecordVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param storeLockRecordSearchVo
     * @return
     */
    void deleteByCondition(StoreLockRecordSearchVo storeLockRecordSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<StoreLockRecord> entities);

    /**
     * 根据StoreLockId查询列表
     *
     * @param storeLockId
     * @return
     */
    List<StoreLockRecordVo> selectListByStoreLockId(Long storeLockId);

    /**
     * 根据OptUserId查询列表
     *
     * @param optUserId
     * @return
     */
    List<StoreLockRecordVo> selectListByOptUserId(Long optUserId);
}